﻿namespace SSG
{
    /// <summary>
    /// Interaction logic for DialogGroupName.xaml
    /// </summary>
    public partial class DialogGroupName
    {
        /// <summary>
        /// Enter a group
        /// </summary>
        public DialogGroupName()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Group name
        /// </summary>
        public string GroupName { get { return this._groupName.Text; } set { this._groupName.Text = value; } }

        /// <summary>
        /// Ok button clicked
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OkClicked(object sender, System.Windows.RoutedEventArgs e)
        {
            this.DialogResult = true; // closes window
        }
    }
}